fixed a bug with a*

Signed-off-by: Timothy Francis Hope Manning <tfm19@cosc11002.cosc.canterbury.ac.nz>