Game logic preparations.