Object functionality

Commands now work like intended. Had to change from switch to if
statements because switch only support static cases. should be fairly
simple to digest

TODO: inventory, add objects, implement attack/death