first try creating game using javascript