Training one epoch working - almost

Just need to now update the weights and it will be good