updated level class to support functionality, added canMove method