fix bug where the tiles were just being drawn on top of each other