fixed some bugs and added some speed when scaling in-game tile size