added game API
 + some fixes