performAction() complete

Added in Best Action Policy. This should make the performAction() function complete.