You got the weight dimension flipped - It must (out, in) -> (200, 784) and not (784, 200). The code never used your weights to do forward. And…
You got the parameter name wrong. It must be weight and not weights