functions for player complete for testing