Update doughnut

Added Mouse in range function. We essentially already had this but I put that equation in a function so the if statements would be clearer.