added debug rendering. Fixed tile sizing issue