Significantly improve the speed of GamePanel.can_place method