Adding movement algorithms to sprites