fixed GridAdapter issues and added perlimiary physics for the sphere movement