Created ball class. Everything seems to work graet.