Fixed up first draft engine

Can now get a count of entities that exist.

Also fixed the frame stuff such that the panel isn't cut off
broken hitbox