Changed floor behavior to pan properly