Simplified code and made the graphics smoother (it was slow because of the shadow).