using objects to hold callbacks functions for moving players