Calculates the computers move
Validates the players move