Added the reference to the engine to the Entity
Changed the visibility of the reference to the engine
Initializing the properties array, to fix an NPE
Implemented closing and stopping the engine
Fixed drawing out of bounds