Added math functions and tweaked sounds