adding a proper switch statement for the BF commands