added basic game functionality