Fixed logic

Fixed logic, added pi button and increased the number limit (where
pressing 0 ten times breaks the calculator)