refactored player and planet