Completed ridder, but it doesn't work properly