refactored tile rendering, working stat gui