moved PredictionError to correct place

- added score function calculations to it