Moved the available actions to the Position enum and fixed a minor SQL bug.