Added drag function within sprite box