public void setAim(KeyState keys) {
        if(keys.left) {
            if(keys.up) {
                aim = Direction.UP_LEFT;
            } else if(keys.down) {
                aim = Direction.DOWN_LEFT;
            } else {
                aim = Direction.LEFT;
            }
        } else if(keys.right) {
            if(keys.up) {
                aim = Direction.UP_RIGHT;
            } else if(keys.down) {
                aim = Direction.DOWN_RIGHT;
            } else {
                aim = Direction.RIGHT;
            }
        } else {
            if(keys.up) {
                aim = Direction.UP;
            } else if(keys.down) {
                aim = Direction.DOWN;
            } else {
                aim = direction;
            }
        }
    }