Update Function

Added the update function for the tile map

@LochNeffMonster @jamcohen please review