Small modification to Sprite class to allow diagonal movement