More work on porting over to libGDX.