refactoring the draw_tile function. really need to refactor game::update