Tile drawing and collision detection working