fixed some formatting errors in the output and switched the move function to using the valid_move function to check for a valid move.