replaced player with an image
replaced forEach with for loops in draw function