Added Flip and Roll code