Logic solves rubiks cube while freestyling