Adding implements of isSelfCollision and isWallCollision Methods, small changes in main classes