Parse turnsPer to int before handling errors