Added functions to check for legal moves and kos. Also removed spaces from array