moved game JS into it's own file