Create MathSolver

This solves the math random for the Ikov server. If the input state is ever added to the API, this could be improved by changing line 24 to a sleep condition.