what maths is useful for games