bugfixes to handle arrayoutofbounds exception

Signed-off-by: Arnav Gupta <championswimmer@aokp.co>
update gradle and idea configuration files

Signed-off-by: Arnav Gupta <championswimmer@aokp.co>