added sprite classes and AI