Fixed SDL2 bug, wrote collision detection and accessors for entity class