Cleaned code and implemented sprite