Organized functions. Added piece rotation and drop