Added code to  handle when browser area is bigger than game max size of 1500x900