Fixed some lag

- Unified the "inIDE" flag into the Scarlet main class
- Implemented AI
- Removed lag by removing the "dead" queue for entities.