planet player and unit logic