Porting to libgdx