def get_active_planet(ship_position, planets):
    """
    ship_position = [q, r]
    planets is a list of the planets in the game
    returns [planet, #indexOfPlanet] if at a planet
    returns [None, -1] otherwise
    """
    for planet in planets:
        if ship_position == planet.position_of_hexes[planet.current_position]:
            return planet
    return None