Added mouse events + entity collision helper function