Removed duplicated code from AI

Removed duplicated code from AI, added parameters for jump, left, and
right sprite sheets for baseAI.