improved input
updated ai strategy