added pieces
Fixed switch cases, program now runnable