added animation to switch fruits moving and added fruit class