Added sideways collision detection