Started implementing create games

started working in js file