Cleaned for LibGDX