refactor cursor tool, use int for colors, get rid of if/else