turn some actions into methods
added addToGrid method