* when initializing Api, initialize active_games and completed_games too
* also initialize button and player
* try to improve code cleanliness of Api module by implementing it
  as an anonymous function