public function play_turn($turn)
    {
        $directions = ['forward', 'left', 'right'];
        foreach ($directions as $direction) {
            foreach ($turn->look($direction) as $space) {
                if ($space->is_player()) {
                    $turn->shoot($direction);
                    return;
                } elseif (!$space->is_empty()) {
                    break;
                }
            }
        }
    }