Porting min to libgdx