Currently players can spawn next to enemy pieces and as a result get captured immediately. To prevent this, possible spawning locations should be limited so that players don't spawn in a 7x7 area (meaning they always spawn 3 tiles away) of an enemy piece as well as the enemy pieces' legal moves.