Separated non-drawing logic for drawing player and enemies.