implemented some game functionality