added Sprite abstract class
fixed keyboardstate bug