Update game.js

Added functionality to generate a tile grid based on two variables passed to the function.