migrated rect and movement to player class