an attempt to making the game work
game functionality half working with database data