refactored word
added completed tests for player