Replace constant '-1' to NOBODY for side to move