Update Function

Added the update function for the tile map