Extended gamemath class to include more functions.