Overhauled entity management

Working toward multiplayer