getPossibleActions Improved