Fixed most move generation issues.