Fixed Bug where AnimatedTiledMapTile sometimes couldn't find the correct frame

I've also changed the type of some variables from long to int because int is big enough. The variables describe the duration of one frame, the count of the frames and the absolute loop duration in milliseconds. Whit the use of int a loop duration of ca. 24 days is possible, which is enough.