Added predictive functions for the left, right and down movement (A.I.)