create new game functionality. working version