Changed field initialization and wrote more tests for player