cleaned up client player code