Attempt to port liquidFun to java