Multiple changes to the "hat" entity and some troubleshooting for the entities' zIndex
-Added "autoSort" property to the game itself, which forces the game to sort the entities by zIndex every cycle