Added function to end game upon collision