added game functionality