add basic function to the game
add structure for control