added a class for the robots and refactored to code to work with the new class. removed unnecerssary lines of code from project 1