Added encoder and turret classes, and started implementing state machine