Prevent overflow

In medium tiles the numbers can sometimes overflow