Implemented entity collision and added a winning method.