sentence: pirate galaxy is a free-to-play , massively multiplayer online game written in java in which players operate spaceships , explore various planets , mine minerals from orbit , fight other players and computer enemies in planetary combat .