placed legal move
added illegal move checks