added pointing up and cleaned up
implemented simple rectangular collision