preliminary code for games

need to test!