just typecasted all the divisions to int. Without that game doesn't work with my version.