classes created for player and control panel