Formatted code
Added packet dispatch to update the tile when the side is activated